package com.ljx.NoteBody.service;

import com.ljx.NoteBody.dto.UserDto;
import com.ljx.NoteBody.entity.Note;
import com.ljx.NoteBody.entity.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface UserService {

    void register(UserDto userDto, HttpServletRequest httpServletRequest);
    Map<String, Object> login(User user, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse);
    void logout(HttpServletRequest httpServletRequest);
    User queryUserByUsername(String username, HttpServletRequest httpServletRequest);
    User updateUserInfo(User user);
}
